package com.unisound.tracelog.client.annotation.autoconfigure;

import com.unisound.tracelog.client.annotation.TraceLogAspect;
import com.unisound.tracelog.client.core.autoconfigure.TraceLogClientCoreAutoConfiguration;
import com.unisound.tracelog.client.core.service.TraceLogService;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@AutoConfigureAfter(TraceLogClientCoreAutoConfiguration.class)
public class TraceLogClientAnnotationAutoConfiguration {

    @Bean
    public TraceLogAspect traceLogAspect(TraceLogService traceLogService) {
        return new TraceLogAspect(traceLogService);
    }

}
